//
//  PreviewViewController.h
//  Peso Guide
//
//  Created by macbook on 2025/6/13.
//

#import <UIKit/UIKit.h>
#import "BaseViewController.h"

typedef NS_ENUM(NSInteger, PhotoSourceType) {
    PhotoSourceTypeCamera,
    PhotoSourceTypeAlbum
};

@interface PreviewViewController : BaseViewController

@property (strong, nonatomic) UIImage *photo;
@property (assign, nonatomic) PhotoSourceType sourceType;
@property (assign, nonatomic) BOOL useFrontCamera; // 标记是否使用前置摄像头
@property (copy, nonatomic) void (^onRetake)(void);
@property (copy, nonatomic) void (^onConfirm)(UIImage *compressedImage);

@end
